package com.hbm.usercenter.protocol;

import android.text.TextUtils;

import com.hbm.usercenter.base.BaseProtocol;
import com.hbm.usercenter.bean.UserInfoBean;
import com.hbm.usercenter.utils.JsonUtil;
import com.hbm.usercenter.utils.LogUtils;

/**
 * Created by BS on 2017/6/6.
 */

public class MyInfoProtocol extends BaseProtocol<UserInfoBean> {

    @Override
    protected UserInfoBean parseJson(String result) {
        if (TextUtils.isEmpty(result)) {
            LogUtils.s("cao  空的！！！");
        }

        return JsonUtil.parseJson(result,UserInfoBean.class);
    }

    @Override
    protected String getInterfaceKey() {
        return "weixin/userInfo/index.do?is_json=1";
    }
}
